#include <stdio.h>

#include "fdecl.h"

int store_superquadric_nodes(hybroid *h, char *filename)
{
  int j;
  FILE *outfile;

  if((outfile = fopen(filename, "a")) == 0) {
    printf("Opening error on file: %sn", filename);
    return NULL;
  }

  fprintf(outfile, "%d\n", h->numnodes);
  for(j = 0; j < h->numnodes; j++)
    fprintf(outfile, "%f %f %f\n", h->nodes[j].posit.x, h->nodes[j].posit.y, 
                            h->nodes[j].posit.z);
}
